﻿<UserControl x:Class="UMLSynthesizer.Tasks.View.ImportDirectoryView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:converters="clr-namespace:UMLSynthesizer.Tasks.View.Converters"
             mc:Ignorable="d"
             d:DesignHeight="120" d:DesignWidth="450">
    <UserControl.Resources>
        <converters:FileExtensionConverter x:Key="fileExtensionConverter" />
    </UserControl.Resources>
    <Grid VerticalAlignment="Top">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="5"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="5"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="100"/>
            <ColumnDefinition Width="5"/>
            <ColumnDefinition/>
            <ColumnDefinition Width="5"/>
            <ColumnDefinition Width="40"/>
        </Grid.ColumnDefinitions>
        <Label Content="Source directory" HorizontalAlignment="Right"/>
        <TextBox Text="{Binding SelectedSourceDirectory, Mode=TwoWay}" Grid.Column="2"/>
        <Button Content="..." Grid.Column="4" Command="{Binding SelectSourceDirectoryCommand}"/>
        <Label Content="File extensions" HorizontalAlignment="Right" Grid.Row="2"  />
        <TextBox Grid.Row="2" Grid.Column="2" HorizontalAlignment="Left" Width="150"
                 Text="{Binding SelectedFileExtensions, Converter={StaticResource fileExtensionConverter}, Mode=TwoWay}" />
        <CheckBox Grid.Row="4" Grid.Column="2" Content="Process subdirectories" IsChecked="{Binding ProcessSubdirectoriesOption, Mode=TwoWay}"/>
    </Grid>
</UserControl>
